/**
 * 
 */
package com.sc.softmgr.business.service.fallback;

import org.springframework.stereotype.Component;
import com.acc.softmgr.model.SoftmgrProject;
import com.alibaba.fastjson.JSONObject;
import com.sc.softmgr.business.service.ISoftmgetProjectFeignService;
import com.sc.softmgr.common.web.DataGridObject;

/**
 * 
 * @content
 * 
 * @date 2017年6月12日
 * 
 * @author OprCalf
 * 
 */
@Component
public class SoftmgetProjectFallback implements ISoftmgetProjectFeignService {

	@Override
	public DataGridObject<SoftmgrProject> searchSoftProject(SoftmgrProject softmgrProject, Integer page, Integer rows) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public JSONObject addSoftProject(SoftmgrProject softmgrProject, String currentName) {
		JSONObject json = new JSONObject();
		json.put("status", "500");
		json.put("data", "调用失败");
		return json;
	}

	@Override
	public JSONObject editSoftProject(SoftmgrProject softmgrProject, String currentName) {
		JSONObject json = new JSONObject();
		json.put("status", "500");
		json.put("data", "调用失败");
		return json;
	}

	@Override
	public JSONObject searchSoftProject(Integer id) {
		JSONObject json = new JSONObject();
		json.put("status", "500");
		json.put("data", "调用失败");
		return json;
	}

	@Override
	public JSONObject removeSoftProject(Integer id) {
		JSONObject json = new JSONObject();
		json.put("status", "500");
		json.put("data", "调用失败");
		return json;
	}

	@Override
	public String getSoftProjects() {
		JSONObject json = new JSONObject();
		json.put("status", "500");
		json.put("data", "调用失败");
		return json.toJSONString();
	}

}
